package net.yunxinyong.cec.entity;

import net.yunxinyong.cec.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Cec705OneEntity {
    private Integer id;

    private Integer baseId;

    private String energyName;

    private String measurementUnit;

    private String code;

    private BigDecimal beginInventory;

    private BigDecimal purchaseAmount;

    private BigDecimal otherPurchase;

    private BigDecimal totalConsumption;

    private BigDecimal consumptionIndustrialProduction;

    private BigDecimal consumptionRawMaterial;

    private BigDecimal consumptionNonIndustry;

    private BigDecimal consumptionTransport;

    private BigDecimal finalInventory;

    private BigDecimal scalingCoefficient;

    private BigDecimal referenceScalingCoefficient;

    private BigDecimal electrothermalEquivalentAmount;

    private BigDecimal coalConsumptionAmount;

    private BigDecimal nonIndustryCoal;

    private BigDecimal totalPowerConsumption;

    private BigDecimal industryPowerConsumption;

    private BigDecimal powerOutput;

    private BigDecimal thermalPowerInput;

    private BigDecimal electrothermalEquivalentAmountNow;

    private BigDecimal coalConsumptionAmountNow;

    private String unitHead;

    private String statisticalControlOfficer;

    private String fillFormBy;

    private String phone;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date updateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;
    private Integer status;
    //格式化后的表更新日期
    private String newupdateTime;
    //格式化后的表创建日期
    private String newcreateTime;

    public String getNewupdateTime() {
        return DateUtil.formatDateToStr(this.updateTime);
    }

    public void setNewupdateTime(String newupdateTime) {
        this.newupdateTime = newupdateTime;
    }

    public String getNewcreateTime() {
        return DateUtil.formatDateToStr(this.createTime);
    }

    public void setNewcreateTime(String newcreateTime) {
        this.newcreateTime = newcreateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBaseId() {
        return baseId;
    }

    public void setBaseId(Integer baseId) {
        this.baseId = baseId;
    }

    public String getEnergyName() {
        return energyName;
    }

    public void setEnergyName(String energyName) {
        this.energyName = energyName == null ? null : energyName.trim();
    }

    public String getMeasurementUnit() {
        return measurementUnit;
    }

    public void setMeasurementUnit(String measurementUnit) {
        this.measurementUnit = measurementUnit == null ? null : measurementUnit.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public BigDecimal getBeginInventory() {
        return beginInventory;
    }

    public void setBeginInventory(BigDecimal beginInventory) {
        this.beginInventory = beginInventory;
    }

    public BigDecimal getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getOtherPurchase() {
        return otherPurchase;
    }

    public void setOtherPurchase(BigDecimal otherPurchase) {
        this.otherPurchase = otherPurchase;
    }

    public BigDecimal getTotalConsumption() {
        return totalConsumption;
    }

    public void setTotalConsumption(BigDecimal totalConsumption) {
        this.totalConsumption = totalConsumption;
    }

    public BigDecimal getConsumptionIndustrialProduction() {
        return consumptionIndustrialProduction;
    }

    public void setConsumptionIndustrialProduction(BigDecimal consumptionIndustrialProduction) {
        this.consumptionIndustrialProduction = consumptionIndustrialProduction;
    }

    public BigDecimal getConsumptionRawMaterial() {
        return consumptionRawMaterial;
    }

    public void setConsumptionRawMaterial(BigDecimal consumptionRawMaterial) {
        this.consumptionRawMaterial = consumptionRawMaterial;
    }

    public BigDecimal getConsumptionNonIndustry() {
        return consumptionNonIndustry;
    }

    public void setConsumptionNonIndustry(BigDecimal consumptionNonIndustry) {
        this.consumptionNonIndustry = consumptionNonIndustry;
    }

    public BigDecimal getConsumptionTransport() {
        return consumptionTransport;
    }

    public void setConsumptionTransport(BigDecimal consumptionTransport) {
        this.consumptionTransport = consumptionTransport;
    }

    public BigDecimal getFinalInventory() {
        return finalInventory;
    }

    public void setFinalInventory(BigDecimal finalInventory) {
        this.finalInventory = finalInventory;
    }

    public BigDecimal getScalingCoefficient() {
        return scalingCoefficient;
    }

    public void setScalingCoefficient(BigDecimal scalingCoefficient) {
        this.scalingCoefficient = scalingCoefficient;
    }

    public BigDecimal getReferenceScalingCoefficient() {
        return referenceScalingCoefficient;
    }

    public void setReferenceScalingCoefficient(BigDecimal referenceScalingCoefficient) {
        this.referenceScalingCoefficient = referenceScalingCoefficient;
    }

    public BigDecimal getElectrothermalEquivalentAmount() {
        return electrothermalEquivalentAmount;
    }

    public void setElectrothermalEquivalentAmount(BigDecimal electrothermalEquivalentAmount) {
        this.electrothermalEquivalentAmount = electrothermalEquivalentAmount;
    }

    public BigDecimal getCoalConsumptionAmount() {
        return coalConsumptionAmount;
    }

    public void setCoalConsumptionAmount(BigDecimal coalConsumptionAmount) {
        this.coalConsumptionAmount = coalConsumptionAmount;
    }

    public BigDecimal getNonIndustryCoal() {
        return nonIndustryCoal;
    }

    public void setNonIndustryCoal(BigDecimal nonIndustryCoal) {
        this.nonIndustryCoal = nonIndustryCoal;
    }

    public BigDecimal getTotalPowerConsumption() {
        return totalPowerConsumption;
    }

    public void setTotalPowerConsumption(BigDecimal totalPowerConsumption) {
        this.totalPowerConsumption = totalPowerConsumption;
    }

    public BigDecimal getIndustryPowerConsumption() {
        return industryPowerConsumption;
    }

    public void setIndustryPowerConsumption(BigDecimal industryPowerConsumption) {
        this.industryPowerConsumption = industryPowerConsumption;
    }

    public BigDecimal getPowerOutput() {
        return powerOutput;
    }

    public void setPowerOutput(BigDecimal powerOutput) {
        this.powerOutput = powerOutput;
    }

    public BigDecimal getThermalPowerInput() {
        return thermalPowerInput;
    }

    public void setThermalPowerInput(BigDecimal thermalPowerInput) {
        this.thermalPowerInput = thermalPowerInput;
    }

    public BigDecimal getElectrothermalEquivalentAmountNow() {
        return electrothermalEquivalentAmountNow;
    }

    public void setElectrothermalEquivalentAmountNow(BigDecimal electrothermalEquivalentAmountNow) {
        this.electrothermalEquivalentAmountNow = electrothermalEquivalentAmountNow;
    }

    public BigDecimal getCoalConsumptionAmountNow() {
        return coalConsumptionAmountNow;
    }

    public void setCoalConsumptionAmountNow(BigDecimal coalConsumptionAmountNow) {
        this.coalConsumptionAmountNow = coalConsumptionAmountNow;
    }

    public String getUnitHead() {
        return unitHead;
    }

    public void setUnitHead(String unitHead) {
        this.unitHead = unitHead == null ? null : unitHead.trim();
    }

    public String getStatisticalControlOfficer() {
        return statisticalControlOfficer;
    }

    public void setStatisticalControlOfficer(String statisticalControlOfficer) {
        this.statisticalControlOfficer = statisticalControlOfficer == null ? null : statisticalControlOfficer.trim();
    }

    public String getFillFormBy() {
        return fillFormBy;
    }

    public void setFillFormBy(String fillFormBy) {
        this.fillFormBy = fillFormBy == null ? null : fillFormBy.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}